package cn.fjsay.java.demo2;

public class Ladder {
    double above;
    double bottom;
    double height;
    public  Ladder(){

    }

    public Ladder(double above, double bottom, double height) {
        this.above = above;
        this.bottom = bottom;
        this.height = height;
    }
    public double getArea(){
        return (this.above+this.bottom)*this.height/2;
    }
}
